<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="../static/bootstrap.min.css" rel="stylesheet">
	<link href="../static/style.css" rel="stylesheet">
	<title>计算机网络综合实训</title>
</head>
<body>
	<div class="container">
		<div class="col-md-12 column">
			<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
				<div class="navbar-header">
					  <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
					  <span class="sr-only">Toggle navigation</span>
					  <span class="icon-bar"></span><span class="icon-bar"></span>
					  <span class="icon-bar"></span>
					  </button>
					  <a class="navbar-brand" href="#">华中科技大学</a>
				</div>
				<div class="collapse navbar-collapse" id="navbar-collapse">
					<ul class="nav navbar-nav">
						<li><a href="/">首页</a></li>
						<li  class="active"><a href="/notice/0">通告</a></li>
						<li><a href="#">网络考试</a></li>
					</ul>
				</div>
			</nav>
		</div>
	</div>	

	<div class="container">
		<div class="col-md-8 col-md-offset-2">
			{% if infos | length == 0 %}
				<h3>暂无公告！</h3>
			{% else %}
				{% for info in infos %}
					<div class="panel panel-info">
						<div class="panel-heading">
							{{ info[1] }}
							<em class="pull-right">{{info[3]}}</em>
						</div>
						<div class="panel-body">{{ info[2] }}</div>
					</div>
				{% endfor %}
				<nav>
					<ul class="pagination pull-right">
						{% for num in total %}
							<li {% if num == now %} class="active" {% endif %} ><a href="/notice/{{num}}/0">{{ num }}</a></li>
						{% endfor %}
					</ul>
				</nav>
			{% endif %}
		</div>
	</div>

	<footer class="footer">
		<div class="container">
			<p class="text-muted">Copyright © HUST SCHOOL, Powered By <a href="http://leonard-peng.github.io" target="_blank">彭佳伟</a> In 2015</p>
		</div>
	</footer>
	<script src="../static/jquery.min.js"></script>
	<script src="../static/bootstrap.min.js"></script>
</body>
</html>